﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace BG.DAL.Model
{
    public class FileAttach
    {
        [Key]
        public Guid kFileAttachedId { get; set; }

        [Display(Name = "ContentType")]
        public Guid kContentTypeId { get; set; }

        [Display(Name = "Ticket")]
        public Guid kTicketId { get; set; }

        [Display(Name = "FileUrl"), Required(ErrorMessage = "* This field is required"), StringLength(200)]
        public String sFileUrl { get; set; }

        [Display(Name = "FileSize")]
        public int iFileSize { get; set; }

        public DateTime? dtDateAdd { get; set; }

        public DateTime? dtDateUpdate { get; set; }

        public FileAttach()
        {
            dtDateAdd = DateTime.Today;
        }
    }
}
